package com.itheima.petstoresystem;

public class Pet {
    private String name;
    private String skills;

    public Pet() {
    }

    public Pet(String name, String skills) {
        this.name = name;
        this.skills = skills;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSkills() {
        return skills;
    }

    public void setSkills(String skills) {
        this.skills = skills;
    }

    @Override
    public String toString() {
        return "Pet{" +
                "name='" + name + '\'' +
                ", skills='" + skills + '\'' +
                '}';
    }
    //购买宠物
    public   void getAnimal(PetType petType){
        switch (petType){
            case CAT :
                System.out.println("交易一只猫");
                break;
            case DOG:
                System.out.println("交易一只狗");
                break;
            case BIRD:
                System.out.println("交易一只鸟");
            default:
                break;
        }

    }

}



